package edu.dillo.dillotude;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;


public class DilloTude extends StateBasedGame {
	
	public enum GameStates{LOAD, MENU, LEVEL_STATE}; // The different states the game can potentially be in.  Currently only the LEVEL_STATE is implemented
	
	public DilloTude() throws SlickException// Initializing the main class, creating a level state, and entering it
	{
		super("Dillo Tude");
		LevelState testLevelState = new LevelState();
		this.addState(testLevelState);
		
		this.enterState(GameStates.LEVEL_STATE.ordinal());
	}

	@Override
	public void initStatesList(GameContainer gc) throws SlickException {// Initializing the states
		this.getState(GameStates.LEVEL_STATE.ordinal()).init(gc, this);
		
	}
	
	 public static void main(String[] args) throws SlickException// Just the main method that creates the app window and displays it
	  {
	     AppGameContainer app = new AppGameContainer(new DilloTude());
	 
	     app.setDisplayMode(1000, 500, false);
	    // app.setMinimumLogicUpdateInterval(10);
	     app.setVSync(true);
	     app.start();
	     
	  }

}
// Comment test for push 
